<%--
功能：获取与货品相关的促销礼品列表 
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag import="java.util.List" %>
<%@ tag import="java.util.ArrayList" %>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.common.service.PromoService" %>
<%@ tag import="com.probiz.estore.common.model.sales.Gift" %>


<%@ attribute name="productSku" type="com.probiz.estore.common.model.product.ProductSku" required="true" description="商品Sku" %>
<%@ attribute name="returnGiftList" type="java.lang.String" required="true" description="要返回的礼品列表名称" %>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	PromoService promoService = (PromoService) ctx.getBean("promoService");
	List<Gift> giftList = promoService.getPromoInfoByProductSku(productSku);
	request.setAttribute(returnGiftList,giftList);
%>
<jsp:doBody />


